home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / mail / pine3.96.tar.gz / pine3.96.tar / pine3.96 / pico / makefile.sol < prev    next >
Makefile  |  1996-04-05  |  3KB  |  101 lines

  1. # $Id: makefile.sol,v 4.4 1996/04/05 18:06:44 mikes Exp $
  2. #
  3. #   Michael Seibel
  4. #   Networks and Distributed Computing
  5. #   Computing and Communications
  6. #   University of Washington
  7. #   Administration Builiding, AG-44
  8. #   Seattle, Washington, 98195, USA
  9. #   Internet: mikes@cac.washington.edu
  10. #
  11. #   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  12. #
  13. #
  14. #   Pine and Pico are registered trademarks of the University of Washington.
  15. #   No commercial use of these trademarks may be made without prior written
  16. #   permission of the University of Washington.
  17. #
  18. #   Pine, Pico, and Pilot software and its included text are Copyright
  19. #   1989-1996 by the University of Washington.
  20. #
  21. #   The full text of our legal notices is contained in the file called
  22. #   CPYRIGHT, included with this distribution.
  23. #
  24.  
  25. #
  26. # Makefile for SVR4 version of the PINE composer library and 
  27. # stand-alone editor pico.
  28. #
  29. # [Port courtesy of Marc Unangst <mju@mudos.ann-arbor.mi.us> - mss, 921020]
  30. #
  31.  
  32. #for GNU C
  33. #CC=         gcc
  34. # LDCC= /usr/bin/cc
  35. # If you don't have /usr/bin/cc (our Solaris 2.2 doesn't seem to have it,
  36. # it only has /usr/ucb/cc) then change LDCC to the following line and
  37. # give that a try.  This is still using the Solaris compiler but
  38. # leaving out the UCB compatibility includes and libraries.
  39. LDCC= cc5.sol
  40.  
  41. #STDCFLAGS=    -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE
  42. #otherwise
  43. STDCFLAGS=        -Dsv4 -DPOSIX -DJOB_CONTROL -DMOUSE
  44.  
  45. #includes symbol info for debugging 
  46. #DASHO=        -g
  47. #for normal build
  48. DASHO=        -O
  49.  
  50. CFLAGS=        $(EXTRACFLAGS) $(DASHO) $(STDCFLAGS)
  51.  
  52. # switches for library building
  53. LIBCMD=        ar
  54. LIBARGS=    ru
  55. RANLIB=        true
  56.  
  57. LIB=        $(EXTRALIBES) -ltermlib
  58.  
  59. OFILES=        attach.o ansi.o basic.o bind.o browse.o buffer.o \
  60.         composer.o display.o file.o fileio.o line.o osdep.o \
  61.         pico.o random.o region.o search.o spell.o tinfo.o \
  62.         window.o word.o
  63.  
  64. CFILES=        attach.c ansi.c basic.c bind.c browse.c buffer.c \
  65.         composer.c display.c file.c fileio.c line.c osdep.c \
  66.         pico.c random.c region.c search.c spell.c tinfo.c \
  67.         window.c word.c
  68.  
  69. HFILES=        estruct.h edef.h efunc.h ebind.h pico.h
  70.  
  71.  
  72. #
  73. # dependencies for the Unix versions of pico and libpico.a
  74. #
  75. all:        pico pilot
  76.  
  77. osdep.c:    os_unix.c
  78.         rm -f osdep.c
  79.         cp os_unix.c osdep.c
  80.  
  81. osdep.h:    os_unix.h
  82.         rm -f osdep.h
  83.         cp os_unix.h osdep.h
  84.  
  85. libpico.a:    $& osdep.c osdep.h $(OFILES)
  86.         $(LIBCMD) $(LIBARGS) libpico.a $(OFILES)
  87.         $(RANLIB) libpico.a
  88.  
  89. pico:        main.c libpico.a
  90.         $(LDCC) $(CFLAGS) main.c libpico.a $(LIB) -o pico
  91.  
  92. pilot:        pilot.c libpico.a
  93.         $(LDCC) $(CFLAGS) pilot.c libpico.a $(LIB) -o pilot
  94.  
  95. .c.o:        ; $(CC) -c $(CFLAGS) $*.c
  96.  
  97. $(OFILES):    $(HFILES)
  98.  
  99. clean:
  100.         rm -f *.a *.o *~ osdep.c osdep.h pico pilot
  101.